public class DemoFuxi {
    public static void main(String[] args) {
       int[] arr1=new int[]{4,5,6,7,7};
       int e=6;
       int index=-1;
        for (int i = 0; i < arr1.length; i++) {
            if (arr1[i]==e){
                index=i;
                System.out.println(index);
            }else {
                System.out.println("wu");;
            }
        }


    }
}
